package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * SysVehicleRateDetail generated by hbm2java
 */
@Entity
@Table(name="sys_vehicle_rate_detail"
    ,catalog="lmis"
)
public class SysVehicleRateDetail  implements java.io.Serializable {


     private SysVehicleRateDetailId id;
     private SysVehicleRate sysVehicleRate;
     private BigDecimal rateVal;

    public SysVehicleRateDetail() {
    }

    public SysVehicleRateDetail(SysVehicleRateDetailId id, SysVehicleRate sysVehicleRate, BigDecimal rateVal) {
       this.id = id;
       this.sysVehicleRate = sysVehicleRate;
       this.rateVal = rateVal;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="vehicleRateNo", column=@Column(name="VEHICLE_RATE_NO", nullable=false) ), 
        @AttributeOverride(name="rateYear", column=@Column(name="RATE_YEAR", nullable=false) ) } )
    public SysVehicleRateDetailId getId() {
        return this.id;
    }
    
    public void setId(SysVehicleRateDetailId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="VEHICLE_RATE_NO", nullable=false, insertable=false, updatable=false)
    public SysVehicleRate getSysVehicleRate() {
        return this.sysVehicleRate;
    }
    
    public void setSysVehicleRate(SysVehicleRate sysVehicleRate) {
        this.sysVehicleRate = sysVehicleRate;
    }

    
    @Column(name="RATE_VAL", nullable=false, precision=15)
    public BigDecimal getRateVal() {
        return this.rateVal;
    }
    
    public void setRateVal(BigDecimal rateVal) {
        this.rateVal = rateVal;
    }




}


